#coding=utf-8
#!/usr/bin/python

'''
Created on 2012-11-17

@author: Neo.Chen
'''

from ktlib import ktlib

def SendErrorMessage(appName, message):
    str = "%s error! %s" % (appName, message)
    #发邮件通知
    ktlib.send_email("admin@sky-mobi.com", "neo.chen@sky-mobi.com", str, "rt")
    ktlib.send_email("admin@sky-mobi.com", "18758166494@139.com", str, "rt")
    ktlib.send_email("admin@sky-mobi.com", "tristan.yang@sky-mobi.com", str, "rt")
    ktlib.send_email("admin@sky-mobi.com", "13958110295@139.com", str, "rt")
    #写单独的日志文件
    ktlib.append_log("./%s_error.log" % (appName), str)


def main():
    print("main start...")

if __name__ == '__main__':
    main()



















